#!/usr/bin/env bash
# scp -r /Users/mac/workspace/idea-workspace/LLB_2022_E_SHOP root@47.106.83.33:/home/llb-app/
# ！！需要可以配置外网ip,或者 host.docker.internal 访问宿主机
# docker run -d -p 8088:8088 hub.c.163.com/llb/llb-shop-app:latest
# 启动
# mac环境
# docker run -d --name mac-shop -p 8088:8088 registry.cn-hangzhou.aliyuncs.com/springcloud-llb/llb-repository:latest
mvn clean package -Dmaven.test.skip=true -U
docker build -t registry.cn-hangzhou.aliyuncs.com/springcloud-llb/llb-repository .
docker push registry.cn-hangzhou.aliyuncs.com/springcloud-llb/llb-repository

# 阿里云环境
# docker run -d --name aliyun-shop -p 8088:8088 registry.cn-hangzhou.aliyuncs.com/springcloud-llb/aliyun-shop:latest
#mvn clean package -Dmaven.test.skip=true -U
#docker build -t registry.cn-hangzhou.aliyuncs.com/springcloud-llb/aliyun-shop .
#docker push registry.cn-hangzhou.aliyuncs.com/springcloud-llb/aliyun-shop